
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS 变量</title>
    <link rel="stylesheet" href="index.css">
</head>
<body>
    <h2>用<span class="h1">JS</span> 来控制 <span class="h1">CSS</span></h2>
    <div class="controls">
        <div class="wrap">
            <label for="spacing">空隙:</label>
            <input type="range" id="spacing" min="10" max="200" value="10" onChange="spaceChange()">
        </div>
        <div class="wrap">
            <label for="blur">模糊:</label>
            <input type="range" id="blur" min="0" max="25" value="10" onChange="blurChange()">
        </div>
        <div class="wrap">
            <label for="base">背景颜色:</label>
            <input type="color" id="base" name="base" value="#ffc600" onChange="colorChange()">
        </div>
    </div>
    <img id="img" src="./fd177f444d8253b07b75104a2c58a3e.jpg" alt="演示图片">
    <script src="index.js"> </script>
</body>
</html>